package com.dcy.observer;

/**
 * @Author：dcy
 * @Description:
 * @Date: 2021/1/28 11:19
 */
public class Client {

    public static void main(String[] args) {
        // 创建WeatherData
        WeatherData subject = new WeatherData();

        // 创建观察者
        subject.registerObserver(new CurrentCondition());
        subject.registerObserver(new BaiduSite());

        System.out.println("通知各个注册的观察者");
        subject.setData(10f,100f,30f);

    }
}
